<div id="top">
	<div class="topleft">
		<% if logged_in?-%>
			<%@logged_user = User.find(session[:user_id])%>
			<%= link_to "#{@logged_user.username}", profile_for(@logged_user)%>|
			<%= nav_link "注销", "admin/users", "logout" %>
		<% else %>
			<%= nav_link "注册", "admin/users", "select_role" %>|
			<%= nav_link "登录", "admin/users", "login"%>
		<% end %>
   	</div> 
   	<div class="topright">
         <ul>           
	        <li><%= link_to "回到主页",SITE%></li>
            <li><%= link_to "个人中心",profile_for(@login_user)%></li>
			<li><%= link_to "管理中心", :action => :index, :controller =>"/user" %></li>
         </ul>			           
    </div>
		<p>&nbsp;</p>
</div>